//
// Created by liuyang on 2025/5/16.
//

#ifndef COMPUTERORDERSYSTEM_TEACHERCONTROLLER_H
#define COMPUTERORDERSYSTEM_TEACHERCONTROLLER_H
#include "BaseController.h"
#include "Teacher.h"
#include "Order.h"
#include "../DB/DBMapper.h"

using namespace std;

class TeacherController:public BaseController{
public:
    Teacher teacher;
    TeacherController();
    TeacherController(Teacher& t);

    void showOptions() override;
    void showWindow() override;

    bool auditOrder(int id,int state);// 2.成功 4.失败
    Order* selectOrderById(int id);

    vector<Order> selectAllOrders();
};


#endif //COMPUTERORDERSYSTEM_TEACHERCONTROLLER_H
